package com.roncoo.education.course.service.feign;

import com.roncoo.education.course.feign.interfaces.IFeignUserCourseAppointment;
import com.roncoo.education.course.feign.qo.UserCourseAppointmentQO;
import com.roncoo.education.course.service.feign.biz.FeignUserCourseAppointmentBiz;
import com.roncoo.education.util.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignUserCourseAppointmentController extends BaseController implements IFeignUserCourseAppointment {

    @Autowired
    private FeignUserCourseAppointmentBiz biz;

    @Override
    public int save(@RequestBody UserCourseAppointmentQO qo) {
        return biz.save(qo);
    }

    @Override
    public int sendMsg(@RequestParam Long userNo, @RequestParam String message) {
        return biz.sendMsg(userNo, message);
    }

}
